	#set($key="$!request.params.get('q')")
	
	<div class="wrap mt">
		<!-- 主体部分 -->
		<div class="cp_tier mt">
            <span class="fr mr">共检索到<strong class="cp_tier_rt" id="numFound"> $page.results_found条 </strong>#if($key!='')关于"$key"的#end记录</span>
            <a href="http://china.huisou.com/" title="商务网首页" target="_blank">会搜商务网</a>&gt;<a href="http://china.huisou.com/so/buy/index.html" target="_blank" title="商机">商机</a>&gt;
        </div>
		<div class="grid-m0s200 clearfix mt">
			<div class="col-main">
				<div class="main-wrap">   
                       #if($response.facetFields && $response.facetFields.get(0).values.size()>0)
							#foreach($field in $response.facetFields)
								#if($field.values)
									<div class="classnav p-rela">
									<div class="classnav-body clearfix">
									<div class="classnav-l fl"><strong>#facetTitle($field.name):</strong></div>
									 <ul class="classnav-r fl wid712 clearfix">     
									 	#foreach($facet in $field.values)
											<li class="classnav-li">
												<a class="classsnav-a" title="#facetName($n,$t)" target="_self" href="#url_for_facet_filter($field.name, $facet.name)">#facetName($facet.name,$field.name)</a>
												<span class="classnav-grey">($facet.count)</span>
											</li>
										#end
									 </ul>									 
									</div>
									<div class="classnav-instru p-abso">
			                           	<div class="classnav-more">更多<i class="i-pyramid"></i></div>
			                        	<div class="classnav-more hide" style="display: none;">收起<i class="i-pyramid i-pyramidsec"></i></div>
			                        </div>
								    </div> 
								#end
							#end
						#end
                       <div class="res-do mt p-rela">
                       	<ul class="resdo-ul clearfix">
                           	<li class="resdo-li01">
                               	<a title="搜索关键字  ${key}" href="">${key}</a>
                               </li>
                               <li class="resdo-li02">
                               	<a title="点击搜索相关企业" href="#">产品</a>
                               </li>
                               <li class="resdo-li03">
                               	<a title="点击搜索相关企业" href="">企业</a>
                               </li>
                               <li class="resdo-li04 resdo-lion">
                               	<a title="点击搜索相关商机" href="">商机</a>
                               </li>
                               <li class="resdo-li05">
                               	<a title="点击搜索相关生意经" href="">生意经</a>
                               </li>
                               <li class="resdo-li06">
                               	<a title="点击搜索相关价格行情" href="">价格行情</a>
                               </li>
                               <li class="resdo-li07">
                               	<a title="点击搜索相关资讯" href="">资讯</a>
                               </li>                               
                           </ul>
                           <div class="res-innerdo  clearfix">    
								<p class="fl f-pt f-pcenter">标题 </p>
								<div class="fl">
									<ul class="clearfix">
										<li class="resi-area-li">
                                            #parse("common/area.htm")
                                        </li>
									</ul>
								</div>
								<p class="fl f-pt1 ml30">采购规模</p>
								<p class="fl f-pt1 ml30">到期时间</p>
							</div>
                       </div> <!--res-do-->                                             
                       <div class="res-list mt">                       					    							    			
	                   	#parse("buy/list.htm")	                       	
                       </div>
                       
                       #if($page.results_found>0)			           
				           <div class="mt turn">
								<ul class="s_pages clearfix">
									 #page_links
									<li>共$pageSum页&nbsp;&nbsp;到<input type="text" class="pagenum" id="btnpn"/>页&nbsp;&nbsp;<input type="button" value="确 定" class="pagebtn" onclick="gotoPage($page.page_count,$page.results_per_page,'#btn_link_to')"/></li>
								</ul>
								<script type="text/javascript">
								function gotoPage(page,size,url)
								{
									var pn = $("#btnpn").val();
									if(pn==''||isNaN(pn))
									{
									   alert("请输入页号");
									   return ;
									}
									var ipn = parseInt(pn);
									if(ipn<1||ipn>page)
									{
										alert("超出页数范围了");
										return;
									}
									var start = (parseInt(pn)-1)*size;
									document.location = url+start+".html";
								}
								</script>
							</div>
				      #else
						     <div class="clearfix">
							      <br/>
							      <p>抱歉，没有找到符合"<span style="color:red">$key</span>"的查询结果。</p>
							      <br/>
							 </div>
						     <br/>
					  #end
                       
                       <div class="s-integrated clearfix mt">
                            <form onsubmit="return checkSub('fkeyipt');" method="post" name="form2">
                            <strong>综合搜索</strong>
                            <div class="s-bg integrated-box clearfix fl">
                                <div class="Bbrace fl">
                                    <div class="s-bg igd formsel">产 品</div>
                                    <ul class="itger-sild so-bra-ls hide" id="bstpl" style="display: none;">
                                        <li aurl="sale" style="display: none;">产 品</li>
                                        <li aurl="company">公 司</li>
                                        <li aurl="job">招 聘</li>
                                        <li aurl="fwww">网 页</li>
                                        <li aurl="fvideo">视 频</li>
                                        <li aurl="fimg">图 片</li>
                                    </ul>
                                </div>
                                <input type="text" id="fkeyipt" class="s-bg searchTXT itgr-txt" value="请输入产品名称">
                                <input type="hidden" class="stype" id="ftype" value="sale">
                                <input type="submit" class="s-bg itger-btn" value="搜索">
                            </div>
                            </form>
                        </div><!-- res-sear -->                       
                   #parse("common/rmd_prods.htm")                       
                   </div>
			</div>
			<div class="col-sub">
				<div class="search_zone">
					<div class="borders">
						<div class="title">
							<h4>一站式搜索</h4>
						</div>
						<div class="con">
							<ul>
								<li class="on"><i class="company fl"></i><a target="_blank" href="http://china.huisou.com/so/company/k-${key}.html">企业</a></li>
								<li><i class="web fl"></i><a href="javascript:gotoOtherSite('${key}','swww');">网页</a></li>
								<li><i class="photo fl"></i><a href="javascript:gotoOtherSite('${key}','simg');">图片</a></li>
								<li><i class="video fl"></i><a href="javascript:gotoOtherSite('${key}','svideo');"> 视频</a></li>
								<li><i class="news fl"></i><a target="_blank" href="http://china.huisou.com/so/news/k-${key}.html">资讯</a></li>
							</ul>
						</div>
					</div>
				</div>
				<div class="com-hot mt">
					<div class="title">
							<h4>热门搜索</h4>
					</div>
					<div class="com-hotcon mt">
						<ul id="hotsearch" class="clearfix"></ul>
					</div>
				</div>
                <span id="imgads"></span>
                <span id="history"></span>                   
			</div>                
		</div>
	</div>
	
	<script type="text/javascript">
		var rooturl = "http://china.huisou.com/so/";
		$(function(){		    
			var sid = "$!request.params.get('sid')";
			if(sid!=""){
				$("#area_result_province_id").val(sid);
				$.getJSON(rooturl+"getareaname.htm?id="+sid, function(result){
					$("#area_result_province_html").text(result[0]);
				});
			}
			var cid = "$!request.params.get('cid')";
			if(cid!=""){
				$("#area_result_city_id").val(cid);
				$.getJSON(rooturl+"getareaname.htm?id="+cid, function(result){
					$("#area_result_city_html").text(result[0]);
				});
			}
		});
	
		function submitSearch(){
			var url=rooturl+"buy/"
			var key = encodeURI("$!request.params.get('q')");
			key = key.replace("-", "=2D")
			if (key != ""){
				url += "k-" + key;
			}
			
			var provinceid=$("#area_result_province_id").val();
			if (provinceid!=null && provinceid != '' && provinceid!='0'){
				url += "_s-" + provinceid;
			}
			
			var cityid=$("#area_result_city_id").val();
			if (cityid!=null && cityid!='' && cityid != '0'){
				url += "_c-" + cityid;
			}
			
			var pid = "$!request.params.get('pid')";
			if(pid!=''){
				url += "_p-"+pid;
			}
			
			window.location.href = url + ".html";
			return false;
		}
		
		function setarea(sid,cid){
			$("#area_result_province_id").val(sid);
			$("#area_result_city_id").val(cid);
		}
		
		function setbizModel(val){
			$("#bizModel").val(val);
		}
		
		function setsort(val){
			$("#sort").val(val);
		}
		
		function setshowmodel(val){
			$("#showmodel").val(val);
		}
	</script>